<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: D:/doxy/PublicAPI/ATDataCore/ATSheetSize.h 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_52a01df1794e5beec01860bdd05aea48.html">PublicAPI</a></li><li class="navelem"><a class="el" href="../../dir_4327875b5af0f0d2cd35b102dcf8c063.html">ATDataCore</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">ATSheetSize.h</div></div>
</div><!--header-->
<div class="contents">
<a href="../../d1/da1/_a_t_sheet_size_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span>BEGIN_ATEC_ATDATACORE_NAMESPACE</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="../../d1/d49/struct_a_t_sheet_size_def.html">   19</a></span><span class="keyword">struct  </span><a class="code hl_struct" href="../../d1/d49/struct_a_t_sheet_size_def.html">ATSheetSizeDef</a></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span>{</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span>    WString             m_formName;</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span>    <span class="keywordtype">double</span>              m_width;</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>    <span class="keywordtype">double</span>              m_height;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span>    <span class="keywordtype">double</span>              m_adMargins[4];</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>    UnitDefinition      m_unitDef;</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>    UnitSystemMask      m_systemMask;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="../../d1/d49/struct_a_t_sheet_size_def.html#a763a36937193b55a4a3a4ae15b316aaa">   38</a></span>    ATDATACORE_EXPORT <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d1/d49/struct_a_t_sheet_size_def.html#a763a36937193b55a4a3a4ae15b316aaa">IsValid</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="../../d1/d49/struct_a_t_sheet_size_def.html#a80fb61623926c92f16c6c727cf5d09fd">   48</a></span>    ATDATACORE_EXPORT <span class="keywordtype">double</span> <a class="code hl_function" href="../../d1/d49/struct_a_t_sheet_size_def.html#a80fb61623926c92f16c6c727cf5d09fd">GetWidth</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="../../d1/d49/struct_a_t_sheet_size_def.html#a820d4f2a7a09f07cefb1636acf906ece">   58</a></span>    ATDATACORE_EXPORT <span class="keywordtype">double</span> <a class="code hl_function" href="../../d1/d49/struct_a_t_sheet_size_def.html#a820d4f2a7a09f07cefb1636acf906ece">GetHeight</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>};</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span> </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span><span class="keyword">typedef</span> RefCountedPtr&lt;ATSheetSizeIterOpts&gt;      ATSheetSizeIterOptsPtr;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="../../d0/daf/struct_a_t_sheet_size_iter_opts.html">   69</a></span><span class="keyword">struct </span><a class="code hl_struct" href="../../d0/daf/struct_a_t_sheet_size_iter_opts.html">ATSheetSizeIterOpts</a> : RefCountedBase</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>{</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>    <span class="keywordtype">bool</span>                m_orderAscending;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>    UnitSystemMask      m_allowedSystems;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>    <a class="code hl_struct" href="../../d0/daf/struct_a_t_sheet_size_iter_opts.html">ATSheetSizeIterOpts</a>();</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="../../d0/daf/struct_a_t_sheet_size_iter_opts.html#a1c344063e3c0375bf11f2a1fde66ffae">   86</a></span>    ATDATACORE_EXPORT <span class="keyword">static</span> ATSheetSizeIterOptsPtr <a class="code hl_function" href="../../d0/daf/struct_a_t_sheet_size_iter_opts.html#a1c344063e3c0375bf11f2a1fde66ffae">Create</a>();</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>};</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="../../d2/d91/struct_a_t_sheet_size_collections.html">   95</a></span><span class="keyword">struct </span><a class="code hl_struct" href="../../d2/d91/struct_a_t_sheet_size_collections.html">ATSheetSizeCollections</a></div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>{</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>    ATSheetSizeIterOptsPtr     m_options;</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>    xvector&lt;ATSheetSizeDef&gt;    m_sheetsizes;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span> </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>    ATDATACORE_EXPORT <a class="code hl_struct" href="../../d2/d91/struct_a_t_sheet_size_collections.html">ATSheetSizeCollections</a>(ATSheetSizeIterOptsCR);</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>    <span class="keyword">struct </span>const_iterator : std::iterator&lt;std::forward_iterator_tag, ATSheetSizeDef&gt;</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>    {</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>        <span class="keyword">friend</span> <span class="keyword">struct </span><a class="code hl_struct" href="../../d2/d91/struct_a_t_sheet_size_collections.html">ATSheetSizeCollections</a>;</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>        <a class="code hl_struct" href="../../d2/d91/struct_a_t_sheet_size_collections.html">ATSheetSizeCollections</a> <span class="keyword">const</span>&amp;  m_collection;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>        <span class="keywordtype">size_t</span>                          m_index;</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span> </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>        const_iterator(<a class="code hl_struct" href="../../d2/d91/struct_a_t_sheet_size_collections.html">ATSheetSizeCollections</a> <span class="keyword">const</span>&amp; collection, <span class="keywordtype">bool</span> begin);</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>        ATDATACORE_EXPORT const_iterator&amp;  operator ++();</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span> </div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>        ATDATACORE_EXPORT <a class="code hl_struct" href="../../d1/d49/struct_a_t_sheet_size_def.html">ATSheetSizeDef</a> operator *() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>        ATDATACORE_EXPORT <span class="keywordtype">bool</span> operator != (const_iterator <span class="keyword">const</span> &amp;) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span> </div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>        ATDATACORE_EXPORT <span class="keywordtype">bool</span> operator == (const_iterator <span class="keyword">const</span> &amp; rhs)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !(*<span class="keyword">this</span> != rhs); }</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>    };</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span> </div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="../../d2/d91/struct_a_t_sheet_size_collections.html#a8a5d5361e89cec9dee61e498e99b4fe1">  133</a></span>    ATDATACORE_EXPORT <a class="code hl_struct" href="../../d1/d49/struct_a_t_sheet_size_def.html">ATSheetSizeDef</a>     <a class="code hl_function" href="../../d2/d91/struct_a_t_sheet_size_collections.html#a8a5d5361e89cec9dee61e498e99b4fe1">FindByName</a>(WCharCP name) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>};</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>END_ATEC_ATDATACORE_NAMESPACE</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span> </div>
<div class="ttc" id="astruct_a_t_sheet_size_collections_html"><div class="ttname"><a href="../../d2/d91/struct_a_t_sheet_size_collections.html">ATSheetSizeCollections</a></div><div class="ttdoc">代表程序预定义的SheetSizeDefinition集合</div><div class="ttdef"><b>Definition:</b> ATSheetSize.h:96</div></div>
<div class="ttc" id="astruct_a_t_sheet_size_collections_html_a8a5d5361e89cec9dee61e498e99b4fe1"><div class="ttname"><a href="../../d2/d91/struct_a_t_sheet_size_collections.html#a8a5d5361e89cec9dee61e498e99b4fe1">ATSheetSizeCollections::FindByName</a></div><div class="ttdeci">ATDATACORE_EXPORT ATSheetSizeDef FindByName(WCharCP name) const</div><div class="ttdoc">根据指定的名称查找表尺寸定义</div></div>
<div class="ttc" id="astruct_a_t_sheet_size_def_html"><div class="ttname"><a href="../../d1/d49/struct_a_t_sheet_size_def.html">ATSheetSizeDef</a></div><div class="ttdoc">SheetSizeDefinition用于存储描述图纸表的尺寸与可打印区域的信息，它保存了名称、宽度、高度和外边距。</div><div class="ttdef"><b>Definition:</b> ATSheetSize.h:20</div></div>
<div class="ttc" id="astruct_a_t_sheet_size_def_html_a763a36937193b55a4a3a4ae15b316aaa"><div class="ttname"><a href="../../d1/d49/struct_a_t_sheet_size_def.html#a763a36937193b55a4a3a4ae15b316aaa">ATSheetSizeDef::IsValid</a></div><div class="ttdeci">ATDATACORE_EXPORT bool IsValid() const</div><div class="ttdoc">检查表尺寸是否包含有效数据</div></div>
<div class="ttc" id="astruct_a_t_sheet_size_def_html_a80fb61623926c92f16c6c727cf5d09fd"><div class="ttname"><a href="../../d1/d49/struct_a_t_sheet_size_def.html#a80fb61623926c92f16c6c727cf5d09fd">ATSheetSizeDef::GetWidth</a></div><div class="ttdeci">ATDATACORE_EXPORT double GetWidth() const</div><div class="ttdoc">获取表宽度</div></div>
<div class="ttc" id="astruct_a_t_sheet_size_def_html_a820d4f2a7a09f07cefb1636acf906ece"><div class="ttname"><a href="../../d1/d49/struct_a_t_sheet_size_def.html#a820d4f2a7a09f07cefb1636acf906ece">ATSheetSizeDef::GetHeight</a></div><div class="ttdeci">ATDATACORE_EXPORT double GetHeight() const</div><div class="ttdoc">获取表高度</div></div>
<div class="ttc" id="astruct_a_t_sheet_size_iter_opts_html"><div class="ttname"><a href="../../d0/daf/struct_a_t_sheet_size_iter_opts.html">ATSheetSizeIterOpts</a></div><div class="ttdoc">用于指定迭代SheetSizeCollection的迭代行为</div><div class="ttdef"><b>Definition:</b> ATSheetSize.h:70</div></div>
<div class="ttc" id="astruct_a_t_sheet_size_iter_opts_html_a1c344063e3c0375bf11f2a1fde66ffae"><div class="ttname"><a href="../../d0/daf/struct_a_t_sheet_size_iter_opts.html#a1c344063e3c0375bf11f2a1fde66ffae">ATSheetSizeIterOpts::Create</a></div><div class="ttdeci">static ATDATACORE_EXPORT ATSheetSizeIterOptsPtr Create()</div><div class="ttdoc">创建默认的迭代选项，将从小到大的尺寸迭代列表中的数据</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
